.class final Lcom/melesta/engine/FacebookOperations$3;
.super Ljava/lang/Object;
.source "FacebookOperations.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/engine/FacebookOperations;->inviteUsersToFacebook(Ljava/lang/String;IILcom/melesta/engine/EngineActivity;Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$body:Ljava/lang/String;

.field final synthetic val$callback:I

.field final synthetic val$me:Lcom/melesta/engine/EngineActivity;

.field final synthetic val$suggestions:Ljava/lang/String;

.field final synthetic val$user_data:I


# direct methods
.method constructor <init>(Ljava/lang/String;Ljava/lang/String;Lcom/melesta/engine/EngineActivity;II)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 232
    iput-object p1, p0, Lcom/melesta/engine/FacebookOperations$3;->val$body:Ljava/lang/String;

    iput-object p2, p0, Lcom/melesta/engine/FacebookOperations$3;->val$suggestions:Ljava/lang/String;

    iput-object p3, p0, Lcom/melesta/engine/FacebookOperations$3;->val$me:Lcom/melesta/engine/EngineActivity;

    iput p4, p0, Lcom/melesta/engine/FacebookOperations$3;->val$user_data:I

    iput p5, p0, Lcom/melesta/engine/FacebookOperations$3;->val$callback:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    .line 236
    :try_start_0
    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    .line 237
    .local v2, parameters:Landroid/os/Bundle;
    const-string v3, "link"

    sget-object v4, Lcom/melesta/engine/FacebookOperations;->mFacebookPageLink:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 238
    const-string v3, "name"

    sget-object v4, Lcom/melesta/engine/FacebookOperations;->mFacebookPageName:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 239
    const-string v3, "title"

    sget-object v4, Lcom/melesta/engine/FacebookOperations;->mFacebookPageName:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 240
    const/4 v3, 0x1

    new-array v1, v3, [Ljava/lang/String;

    const/4 v3, 0x0

    const-string v4, "app_non_users"

    aput-object v4, v1, v3

    .line 241
    .local v1, f:[Ljava/lang/String;
    const-string v3, "filters"

    invoke-virtual {v2, v3, v1}, Landroid/os/Bundle;->putStringArray(Ljava/lang/String;[Ljava/lang/String;)V

    .line 242
    const-string v3, "message"

    iget-object v4, p0, Lcom/melesta/engine/FacebookOperations$3;->val$body:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 243
    iget-object v3, p0, Lcom/melesta/engine/FacebookOperations$3;->val$suggestions:Ljava/lang/String;

    if-eqz v3, :cond_0

    iget-object v3, p0, Lcom/melesta/engine/FacebookOperations$3;->val$suggestions:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    if-lez v3, :cond_0

    .line 244
    const-string v3, "frictionless"

    const-string v4, "1"

    invoke-virtual {v2, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 245
    const-string v3, "to"

    iget-object v4, p0, Lcom/melesta/engine/FacebookOperations$3;->val$suggestions:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 248
    :cond_0
    iget-object v3, p0, Lcom/melesta/engine/FacebookOperations$3;->val$me:Lcom/melesta/engine/EngineActivity;

    new-instance v4, Lcom/melesta/engine/FacebookOperations$3$1;

    invoke-direct {v4, p0}, Lcom/melesta/engine/FacebookOperations$3$1;-><init>(Lcom/melesta/engine/FacebookOperations$3;)V

    invoke-static {v3, v2, v4}, Lcom/melesta/engine/Helpers;->showRequestDialogWithoutNotificationBar(Landroid/content/Context;Landroid/os/Bundle;Lcom/facebook/widget/WebDialog$OnCompleteListener;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 270
    .end local v1           #f:[Ljava/lang/String;
    .end local v2           #parameters:Landroid/os/Bundle;
    :goto_0
    return-void

    .line 267
    :catch_0
    move-exception v0

    .line 268
    .local v0, exc:Ljava/lang/Exception;
    const-string v3, "facebookPost-handler"

    invoke-static {v3, v0}, Lcom/melesta/engine/Error;->processException(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method
